package com.juyu.miliao.api.domain.dto;

import com.juyu.miliao.api.validator.GiftSpendCheck;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author xuanqicheng
 * @create 2019-22-09:55
 */
@Data
public class DynamicGiftInfoDTO {

    /**
     * 动态id
     */
    @NotNull(message = "动态id 不能为空")
    private Long dynamicId;
    /** 礼物id*/
    @Min(value = 1, groups = {GiftSpendCheck.class})
    private int giftId;
    /** 接收礼物用户id*/
    private int inUserId;
    /** 送出礼物用户id*/
    private int outUserId;

    /** 数量*/
    @Min(value = 1, groups = {GiftSpendCheck.class})
    private int num;
}
